import request from "@/utils/request";
// /card-product-orders/admin/list
export function getOrderList(data) {
  return request({
    url: "/card-product-orders/admin/list",
    method: "post",
    data: data,
  });
}
// card-product-orders/admin/list-items
export function getOrderItemList(data) {
  return request({
    url: "/card-product-orders/admin/list-items",
    method: "get",
    params: data,
  });
}
// /card-product-orders/update-status
export function updateOrderStatus(data) {
  return request({
    url: "/card-product-orders/update-status",
    method: "get",
    params: {
      id: data.id,
      orderStatus: data.orderStatus,
    },
  });
}
